<?php


require_once 'Classes/Element.php';

class Loan extends Element{
    
    private $statut;
    private $startingDate;
    private $endingDate;
    private $userID;
    
    public function __construct($arrayOrId="", $id="",$statut="",$startingDate="",
				$endingDate="",$userID="") {
	
	parent::__construct($arrayOrId);
        
	if(is_array($arrayOrId)){  
           
	    $this->statut=$arrayOrId['Statut'];
	    $this->startingDate=$arrayOrId['Starting_Date'];
	    $this->endingDate=$arrayOrId['Ending_Date'];
	    $this->userID=$arrayOrId['ClientID'];
	}
	else{
	    
	    
	    $this->statut=$statut;
	    $this->startingDate=$startingDate;
	    $this->endingDate=$endingDate;
	    $this->userID=$userID;
	    
	}
	    
    }
   
    
    public function getStatut() {
        return $this->statut;
    }

    public function setStatut($statut) {
        $this->statut = $statut;
    }

    public function getStartingDate() {
        return $this->startingDate;
    }

    public function setStartingDate($startingDate) {
        $this->startingDate = $startingDate;
    }

    public function getEndingDate() {
        return $this->endingDate;
    }

    public function setEndingDate($endingDate) {
        $this->endingDate = $endingDate;
    }

    public function getUserID() {
        return $this->userID;
    }

    public function setUserID($userID) {
        $this->userID = $userID;
    }
}

?>
